package com.ruoyi.quality.service;

import com.ruoyi.quality.domain.QualitySeamRate;
import com.ruoyi.quality.domain.vo.QualitySeamRateVo;
import com.ruoyi.quality.domain.bo.QualitySeamRateBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.quality.domain.vo.RecentHalfYearSeamVo;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 焊缝探伤信息Service接口
 *
 * @author ruoyi
 * @date 2024-01-26
 */
public interface IQualitySeamRateService {

    /**
     * 查询焊缝探伤信息
     */
    QualitySeamRateVo queryById(Long id);

    /**
     * 查询焊缝探伤信息
     */
    List<QualitySeamRateVo> queryByIds(Collection<Long> ids);

    /**
     * 查询焊缝探伤信息列表
     */
    TableDataInfo<QualitySeamRateVo> queryPageList(QualitySeamRateBo bo, PageQuery pageQuery);

    /**
     * 查询焊缝探伤信息列表
     */
    List<QualitySeamRateVo> queryList(QualitySeamRateBo bo);

    /**
     * 新增焊缝探伤信息
     */
    Boolean insertByBo(QualitySeamRateBo bo);

    /**
     * 修改焊缝探伤信息
     */
    Boolean updateByBo(QualitySeamRateBo bo);

    /**
     * 校验并批量删除焊缝探伤信息信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    List<RecentHalfYearSeamVo> getRecentHalfYearSeam(QualitySeamRateBo bo);

    Map<String, Object> calculateSeamRate(QualitySeamRateBo bo);
}
